package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 批量插入订单详细信息
     * @param list
     */
    void insert(List<OrderDetail> list);

    /**
     * 获取订单明细
     * @param orderId
     * @return
     */
    List<OrderDetail> getDetailById(Long orderId);
}
